<template>
  <div class="home_game_dynamic">
    <SectionComponent
      :type="props.tabInfo.id"
      :title="props.tabInfo.name"
      :icon="props.tabInfo.icon_h5"
      :items="props.tabInfo.three_platform"
    />
  </div>
</template>

<script setup lang="ts">
import { defineProps  } from 'vue';
import SectionComponent from "./sectionComponent.vue";


const props: any = defineProps({
  tabInfo: {
    type: Object,
    default: () => ({}), // 设置默认值
  },
});
</script>

<style lang="scss" scoped >
.home_game_dynamic {

.section {
  margin-bottom: 24px;
}

.section_title {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fcfffa;
}

.section_icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.custom_layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.grid_item {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 8px;
  background-size: 100% 100%;
  text-align: center;
}

.grid_item_left {
  width: 60px;
}

.item_image {
  width: 27px;
  height: 27px;
  margin: 0 auto;
  display: block;
}

.item_label {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
}

.full_width {
  grid-column: span 2;
}

}
</style>